package com.whynot.frame.ms.entities;

import com.whynot.frame.auth.shiro.entities.BaseSysUser;
import com.whynot.frame.basic.mybatis.model.BaseModel;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;

/**
 * 描    述:用户实体
 * 创建时间: 2018/07/01
 */
@TableName("tbl_sys_user")
@Data
@ApiModel(value = "用户对象")
public class SysUser extends BaseModel<SysUser> implements BaseSysUser{
    @ApiModelProperty(value = "主键")
    private Integer id;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("密码")
    private String pwd;
    @ApiModelProperty("昵称")
    private String nick;
    @ApiModelProperty("密码有效期")
    private String pwdValidDay;
    @ApiModelProperty("状态：1启用,0停用")
    private Integer enabled;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("生日")
    private String birthday;
    @ApiModelProperty("手机")
    private String phone;
    @ApiModelProperty("地址")
    private String address;
    @ApiModelProperty("部门Id")
    private Integer deptId;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
